<html>
<head>
	<title>Welcome to Control-Panel :: Login</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->base_url; ?>/public/scripts/ext/resources/css/ext-all.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo $this->base_url; ?>/public/scripts/ext/resources/css/virtualkeyboard.css" />
	<link rel="icon" href="<?php echo $this->base_url; ?>/public/scripts/ext/resources/img/favicon.ico" type="image/x-icon" />
	<link rel="shortcut icon" href="<?php echo $this->base_url; ?>/public/scripts/ext/resources/img/favicon.ico" type="image/x-icon" />

	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext/ext-all.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext-plugins/mif/searchfield.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext-plugins/mif/util.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext-plugins/mif/virtualkeyboard.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext-plugins/mif/plugins/virtualkeyboard.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext-plugins/mif/Ext.util.md5.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext-plugins/mif/Ext.ux.Crypto.SHA1.js"></script>
	<script type="text/javascript" src="<?php echo $this->base_url; ?>/public/scripts/ext-plugins/mif/Ext.ux.LoginWindow.js"></script>
</head>
<body>
<script type="text/javascript">
function changecaptcha(obj) {
    return obj.src = '<?php echo $this->base_url; ?>/captcha/index/view/' + Math.random() + '.html'
}

Ext.BLANK_IMAGE_URL = '<?php echo $this->base_url; ?>/public/scripts/ext/resources/img/s.gif';
Ext.onReady(function() {
	Ext.QuickTips.init();
	var loginWindow = new Ext.ux.LoginWindow({
		modal : true,
		constrain: true,
		encryptType: 'md5', // 'md5' ou 'sha1'
		width: 435,
		enableVirtualKeyboard : true,
		url: '<?php echo $this->base_url; ?>/',
		basePath: '<?php echo $this->base_url; ?>/public/scripts/ext/resources/img'
	});
	loginWindow.show();
});
</script>
</body>
</html>
